﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using ADODB;

namespace SybaseDataResolver
{
    public partial class FrmShowPertableData : Form
    {
        private string tableName;
        public FrmShowPertableData()
        {
            InitializeComponent();
        }

        public FrmShowPertableData(string _tableName)
        {
            InitializeComponent();

            this.tableName = _tableName;
            this.lblTableName.Text = _tableName;
        }

        private void FrmShowPertableData_Load(object sender, EventArgs e)
        {
            Connection conn = AdoDBConnHelper.NewConnection();
            this.dataGridView1.DataSource = AdoDBConnHelper.execDataTable(conn,"select * from ISA." + tableName);
            conn.Close();
        }
    }
}
